package com.yonyou.lxp.account;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.yonyou.lxp.account.ui.IncomeActivity;
import com.yonyou.lxp.account.ui.QueryActivity;
import com.yonyou.lxp.account.ui.SpendingActivity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;


@ContentView(R.layout.activity_main)
public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Event(value = {R.id.tv_shouru, R.id.tv_zhichu, R.id.tv_chaxun})
    private void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_zhichu://支出
                Intent it = new Intent(mContext, SpendingActivity.class);
                startActivity(it);
                break;
            case R.id.tv_chaxun://查询
                it = new Intent(mContext, QueryActivity.class);
                startActivity(it);
                break;
            case R.id.tv_shouru://收入
                it = new Intent(mContext, IncomeActivity.class);
                startActivity(it);
                break;
        }
    }
   
}

